package com.itheima_03;

import java.util.Scanner;

public class selfTest01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String flag = "";
        String sss = "";
        String ss = "";
        System.out.println("请输入内容:");
       /* while (!ss.equals(":w")) {
             ss = sc.nextLine();

            sss=sss+ss+'\n';
        }*/


       do{
           sss=sss+ss+'\n';
           ss = sc.nextLine();
       }while (!ss.equals(":w"));
        System.out.println(sss);
    }
}
